<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>
<body>
	<script>
		//let a=Symbol("12")
		//let b = Symbol("12")
		//a='13'
		//console.log(a===b);
		//console.log(b);
		//let c =Symbol.for("13")
		//let d= Symbol.for("13")
		//console.log(c===d);
		let obj={
			name:"xiaozhi",
			up(){
				console.log("你好，不是symbol");
			}
		}
		let methods={
			up:Symbol()
		}
		obj[methods.up]=function(){
			console.log("你好,我是symbol");
		}
		console.log(obj);
	</script>
</body>
</html>